package com.imist.jdbc.service;

import com.imist.jdbc.bean.User;
import com.imist.jdbc.dao.UserDao;

public class UserServices {

    private UserDao userDao;

    public UserServices() {
        userDao = new UserDao();
    }

    public User login(String username,String password){
        return userDao.login(username,password);
    }

    public User getUserById(long id){
        return userDao.getUserById(id);
    }

    public boolean updateUser(User user) {
        return userDao.updateUser( user);
    }
}
